package com.neu.events;

import com.neu.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * 用户更新事件 用来传递更新后的用户信息
 */
public class UserUpdateEvent extends ApplicationEvent {
    private User user;

    public UserUpdateEvent(Object source, User user) {
        super(source);
        this.user = user;
    }

    public User getUser() {
        return user;
    }

}